package com.jackstraw.jack_base.datasource.moredatasource.bean;

import com.jackstraw.jack_base.datasource.database.parten.entity.DataBaseEntity;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import lombok.Data;


@Data
public class C3p0DataBaseEntity extends DataBaseEntity<C3p0DataBaseEntity> {
    /**
     * 单位：秒，检测连接是否有效的超时时间。底层调用jdbc Statement对象的void setQueryTimeout(int seconds)方法
     */
    private Integer validationQueryTimeout = 0;

    public C3p0DataBaseEntity() {
        this.setType(ComboPooledDataSource.class);
    }
}
